package cn.sym.basic.query;

import lombok.Data;

@Data
//base抽取查询类
public class BaseQuery {
    //给定默认的当前页为第一页
    private Integer currentPage = 1;
    //设定默认的每页显示数据为10条
    private Integer pageSize = 8;
    private String keywords;
    //计算开始页，返回数据为int类型
    public Integer getIndex(){
        return (this.currentPage-1)*this.pageSize;
    }
}
